package util;

import java.io.*;

public class BufferReader_1 {
    public static void main(String[] args){
        File f = new File("E:\\javaooGit\\javaooDay21\\src\\homework\\student.txt");

        if(!f.exists()){
            try {
                f.createNewFile();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

        try {
            Reader r = new FileReader(f);
            BufferedReader br = new BufferedReader(r);
            //new BufferedWriter("").newLine();
            System.out.println(br.readLine());
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
